import React, { Component, PropTypes } from 'react';
import ReactDOM, { render } from 'react-dom';
import { Provider } from 'react-redux';
import route from './Config/Route'; //路由配置
import store from './Store/Index';

import 'normalize.css'; //重置浏览器默认样式
import '../web_modules/mui/dist/css/mui.css';
import './Style/style.less';
import './Style/search.less';
import 'swiper/dist/css/swiper.css';

store.subscribe(function () {
    // console.log(store.getState());
});

render(
    <Provider store={store}>
        {route}
    </Provider>,
    document.body.appendChild(document.createElement('div'))
);